package com.example.safeassistan.home.adapter;

import androidx.annotation.Nullable;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.safeassistan.R;
import com.example.safeassistan.home.model.RiskDetailInstruction;

import java.util.List;

public class RiskDetailInstructionFragmentAdapter extends BaseQuickAdapter<RiskDetailInstruction.ResultDTO,BaseViewHolder> {
    public RiskDetailInstructionFragmentAdapter(@Nullable List<RiskDetailInstruction.ResultDTO> data) {
        super(R.layout.item_riskdetail_table_fragment, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, RiskDetailInstruction.ResultDTO item) {
        helper.setText(R.id.tvControl,item.getPostDesc());
        helper.setText(R.id.tvIntro,item.getCreateTime());
    }

}
